package c08Java集合;

import java.util.HashMap;
import java.util.Map;

public class MapPutSet {
	public static void main(String[] args) {
		Map map = new HashMap<>();
		map.put(-1, "-1");
		int keyi = -1;
		System.err.println(map.get(keyi));

		Object keyo = -1;
		System.err.println(map.get(keyo));

		String keys = "-1";
		System.err.println(map.get(keys));

		map.put(true, "true");
		boolean kb = true;
		System.err.println(map.get(kb));

		Object ko = true;
		System.err.println(map.get(ko));

		Map<String, String> m = new HashMap<String, String>() {
			{
				put("name", "test");
				put("age", "20");
			}
		};

	}
}
